Latest Questions

how to show a pdf fetched from an API response in flutter?

I am working in a project where I have to show certificate that the user finished a course, there is an URL of the API that uses the get method within a token t

Sort a Map<Integer, Map<Integer, Integer>> by value length

I want to sort a Map by value length. For example, I have this code: public static void main(String[] args) { Map<Integer, Map<Integer, Integer>>

Passing enum to argument of integral type

Consider the following code: enum ABC : char { a, b, c }; void ff(char c) { cout << "char\n"; } void ff(int i) { cout << "int\n"; } i

Matplotlib: connect medians of boxplots with a line [duplicate]

I would like to have a line connecting the medians or means of my boxplots. I use matplotlib. Is there any way to achieve this easily? import

Electron not starting properly due to SIGTRAP

I am getting into Electron to try to begin building desktop applications. I am running into this error: /home/me/dev/my-electron-app-2/node_modules/electron/dis

AWS CDK Credentials not found when Bootstrapping

I'm getting the following error within zsh when issuing the command: Command - ~ % cdk bootstrap aws://******/*region* Error (snip) - Environment aws://****

.NET 6.0 Blazor Server app: WebSocket connection to 'ws://localhost:60908/BlazorApp1/' failed

When I create a new, clean Blazor .NET 6.0 app and start it (using Visual Studio 2022), I see the following error in the browser console: WebSocket connection t

How can I add custom margin to the v-list element under v-menu in vuetify

there is another container that is being add by vuetify to the v-list Im trying to use as v-menu content,because of this container I can't just add a margin to

Covid-19 Growth rate (Bootstrapping/Time Series)

I am trying to code R in order to obtain growth rate for COVID-19. The equation can be found on the inserted image where i(t) is the number of infected individu

C Program, printf() and strlen() argument format for output

Why does my terminal crash when I attempt to run this C Program? Here are the instructions for the programming exercise. #include <stdio.h> #include <

Cannot get out of infinite loop

The problem I am trying to solve is go through a list. In this list, if there is the letter "a", give me all those words. Once I have done that, pose the same

How to create a relationship in Laravel 9

I tried to create a relationship in Laravel for this, Expense has May ExpensesItem Expense has One ExpensesCategory But I could not create a relationship betwee

Woocommerce products are displaying on singular.php

I have created a custom theme and downloaded woocommerce plugin, the shop page is working fine however when I view a product only the content appears. The produ

How to use pandas and numpy to compare two excel workbooks with multiple tabs?

I have two xlsx files that have multiple tabs. I need to compare values in each tab based on the tab name. (e.g. sheet1 in file1 needs to be compared with sheet

download to csv the result of a search in Django

I am trying to download a CSV from the result of a search, as an option. Meaning that the user should be able to do a search and view the result in a template,

Reindex Pandas Series case insensitive (Combining matches)

I have a pandas series with string indices and integer values: (My actual series has >1000 entries) Count apple 1 bear 2 cat 3 Apple 10 pig 20 Cat 30 ApPl

Linear interpolation works on Windows but not on my PIC18F, trouble with 8-bit arch?

I've implemented linear interpolation on my PIC18F device where I'm interpolating ADC values with intervals stored in EEPROM. I tested the code and it doesn't c

running a python script with ptemcee (a package of Monte Carlo) in SBATCH / SLURM

I need to run a python script using sbatch / slurm The script works until the step which it must use the ptemcee (i.e. runs a monte carlo markov chain). In this

How to convert Devextreme React sample code to uses React 18?

DevExtreme React sample application uses ReactDOM.render that was deprecated on React 18. I converted the code to use ReactDOM.createRoot but the webpage is not

Grep sorting dates [closed]

Each day I have to manually identify each stuck call by looking for calls with a date older than the current day. I have managed to grep the r

Is there any other ways that I can specify output file size or number of output files using Athena except for "Bucketing"?

I understand that I can set the number or size of files using "Bucketing" method (Refer to this guide: https://aws.amazon.com/premiumsupport/knowledge-center/se

Use typescript to dynamically set class property in constructor

I am trying create a typescript class MyClass with instance properties set dynamically in the constructor: const myInstance = new MyClass(({ someField: 'foo'

Is there a more efficient way to calculate the difference in months in R

I have a large data frame in a panel structure (201720 rows; 3 columns) which looks as follows: Name <- c("A", "A", "A", "B", "B", "B") Inception <- c(as

Look at the file name before it saves file into a folder

My goal is to add a icon to my toolbar in the quick access section. I wish this code could look at the file that is open, check if the file name contains or rat

entered value only shows in console reactjs

I'm making an expense handler app using reactjs in a practical course. Now, I'm supposed to make a new row with the data I'm passing through form. But it only s

ERROR: Error during SonarScanner execution

I am trying to scan the source code of this website https://demo.testfire.net/ whose source code is https://github.com/HCL-TECH-SOFTWARE/AltoroJ/tree/master ove

Capture text after multiple optional strings into named group with Regex

I am trying to extract multiple strings using different patterns from one long string. Here is an example of the input string: [Update 2]Number of students: 5[

Multivariate Linear Regression, coefficients don't match

I'm facing a problem with different linear models from scikit-learn. There is my code from sklearn.linear_model import LinearRegression reg = LinearRegression()

Golang TCP Connection Slow when Server Doesn't Have Backlog Available

Update With the added pthreaded C client, the problem is recreated, indicating the long connection times are part of the TCP protocol, rather than specific impl

Can I use react native to build a app with another frontend?

Sorry if there is already a similar question with answer and if there is, put the link here so I can reach it. I'm having a difficuty these days... I was told t